package com.zimmor.annotation;

import com.zimmor.entity.User;

import java.util.HashMap;

/**
 * @Author:zimmor
 * @Date: 2021/11/8 13:52
 * @Description 使用@Bean注解的类
 * @version: 1.0.0
 */

public class BeanDemo {

    @Bean
    public User user() {
        return new User();
    }

    @Bean
    public HashMap hashMap() {
        return new HashMap();
    }
}
